const num = 10;
const result = num > 0 
  ? "正数" 
  : num < 0 
    ? "负数" 
    : "零";
console.log(result);

const num2 = -1;
const result2=num2==0?'0':num2>0?'正数':'负数';
console.log(result2,22222);